package com.lxw.station.other;

import lombok.SneakyThrows;
import org.apache.commons.io.FileUtils;

import java.io.File;

public class CopyDir {
    @SneakyThrows
    public static void main(String[] args) {
        for (File file : new File("E:\\chrome").listFiles()) {
            System.out.println(file.getAbsolutePath());
            File src = new File("E:\\csdn\\代码笔记和演示视频");
            FileUtils.copyDirectory(src, file);
        }
    }
}
